# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-sameboy
pkgver=0_git20220819
pkgrel=0
_commit="09138330990da32362246c7034cf4de2ea0a2a2b"
pkgdesc="Gameboy and Gameboy Color emulator for libretro"
url="https://github.com/libretro/SameBoy"
arch="all"
license="MIT"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/SameBoy/archive/$_commit.tar.gz"
builddir="$srcdir/SameBoy-$_commit"
options="!check" # No tests

build() {
	make -C libretro
}

package() {
	install -Dm644 libretro/sameboy_libretro.so "$pkgdir"/usr/lib/libretro/sameboy_libretro.so
}

sha512sums="
cae18e0e11abf89c2311412af6cf07f069929d37e1403316c6cb41c06af77615b02af1ce4e0938bc96a5c2754ee730b1a95c241a583498cd8685aea6e2602d87  libretro-sameboy-09138330990da32362246c7034cf4de2ea0a2a2b.tar.gz
"
